var express = require('express');
var router = express.Router();
const { addLipei, getAllLipei, getSaleLipei, agreeLipei, backLipei, deleteOne, getUpdataOneLipei, SureUpdataOneLipei } = require("../controllers/lipei");
//新增理赔
router.post('/addLipei', addLipei);
//获取所有的理赔
router.get('/getAllLipei', getAllLipei);
//获取销售下的理赔
router.get('/getSaleLipei', getSaleLipei);
//同意受理
router.post('/agreeLipei', agreeLipei);
//撤回理赔
router.post('/backLipei', backLipei);
//删除理赔
router.post('/deleteOne', deleteOne);
//获取修改的理赔信息
router.get('/getUpdataOneLipei',getUpdataOneLipei);
//确认修改理赔信息
router.post('/SureUpdataOneLipei',SureUpdataOneLipei);
module.exports = router;